
// 门店报告数据类型定义
export interface StoredReport {
  hash: string;          // 门店数据哈希值
  timestamp: number;     // 生成时间戳
  content: string;       // 报告内容
}


// 类型定义
export interface StoreData {
  [key: string]: any; // 根据实际门店数据结构定义具体类型
}

export interface SparkRequest {
  header: {
    app_id: string;
    uid?: string;
  };
  parameter: {
    chat: {
      domain: string;
      max_tokens?: number;
      temperature?: number;
      tools?: Array<{
        type: string;
        web_search?: {
          enable: boolean;
          search_mode?: string;
        };
      }>;
    };
  };
  payload: {
    message: {
      text: Array<{
        role: string;
        content: string;
      }>;
    };
  };
}

export interface SparkResponse {
  header: {
    code: number;
    message: string;
    sid: string;
    status: number;
  };
  payload: {
    choices: {
      text: Array<{
        content: string;
        role: string;
      }>;
    };
    usage?: {
      text: {
        total_tokens: number;
      };
    };
  };
}